from appium.webdriver.common.mobileby import MobileBy
from appium.webdriver.webdriver import WebDriver

from appium_PO_test.page.base_page import BasePage


class AddMemberPage(BasePage):

    def addmember_bymenual(self):
        #click 手动输入添加
        self.find(MobileBy.XPATH, "//*[@text='手动输入添加']").click()
        from appium_PO_test.page.edit_member_page import EditMemberPage
        return EditMemberPage(self.driver)

    def find_toast(self):
        self.find(MobileBy.XPATH,"//*[@text='添加成功']")